(()=>{"use strict";var e,t={65677:(e,t,n)=>{var a=m(n(66694)),r=m(n(79674)),o=m(n(71350));n(76528),n(47585);var i=m(n(90146)),l=m(n(82786)),u=n(54830),c=m(n(90840)),d=m(n(40710)),s=m(n(64524)),f=m(n(55046));function m(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}o.default.extend(i.default),"en"===function(e){var t,n,a,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}(document.cookie.split("; "));try{for(r.s();!(t=r.n()).done;){var o=(n=t.value.split("="),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(n,a)||p(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1];if("Scr1wCTFdLanguage"===i)return decodeURIComponent(l)}}catch(e){r.e(e)}finally{r.f()}return null}()?o.default.locale("en"):o.default.locale("zh-cn"),a.default.init(window.init),window.CTFd=a.default,window.helpers=f.default,window.$=r.default,window.dayjs=o.default,window.nunjucks=l.default,window.Howl=u.Howl,(0,r.default)((function(){(0,s.default)(),(0,d.default)(),(0,c.default)(a.default.config.urlRoot)}))},55777:(e,t,n)=>{n(65677);var a=f(n(79674)),r=f(n(66694)),o=n(56930),i=n(96403),l=n(87745),u=f(n(49981)),c=f(n(43741)),d=f(n(82172)),s=n(56930);function f(e){return e&&e.__esModule?e:{default:e}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function h(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function v(e,t){var n,a=p(document.cookie.split("; "));try{for(a.s();!(n=a.n()).done;){var r=m(n.value.split("="),2),o=r[0],i=r[1];if("Scr1wCTFdLanguage"===o)return"en"===decodeURIComponent(i)?e:t}}catch(e){a.e(e)}finally{a.f()}return t}function g(e){e.preventDefault();var t=(0,a.default)("#team-info-create-form").serializeJSON(!0);for(var n in t.fields=[],t)if(n.match(/fields\[\d+\]/)){var o={},l=parseInt(n.slice(7,-1));o.field_id=l,o.value=t[n],t.fields.push(o),delete t[n]}r.default.fetch("/api/v1/teams",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){if(e.success){var t=e.data.id;window.location=r.default.config.urlRoot+"/admin/teams/"+t}else(0,a.default)("#team-info-create-form > #results").empty(),Object.keys(e.errors).forEach((function(t,n){(0,a.default)("#team-info-create-form > #results").append((0,i.ezBadge)({type:"error",body:e.errors[t]}));var r=(0,a.default)("#team-info-create-form").find("input[name={0}]".format(t)),o=(0,a.default)(r);o.addClass("input-filled-invalid"),o.removeClass("input-filled-valid")}))}))}function b(e){e.preventDefault();var t=(0,a.default)("#team-info-edit-form").serializeJSON(!0);for(var n in t.fields=[],t)if(n.match(/fields\[\d+\]/)){var o={},l=parseInt(n.slice(7,-1));o.field_id=l,o.value=t[n],t.fields.push(o),delete t[n]}r.default.fetch("/api/v1/teams/"+window.TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){e.success?window.location.reload():((0,a.default)("#team-info-form > #results").empty(),Object.keys(e.errors).forEach((function(t,n){(0,a.default)("#team-info-form > #results").append((0,i.ezBadge)({type:"error",body:e.errors[t]}));var r=(0,a.default)("#team-info-form").find("input[name={0}]".format(t)),o=(0,a.default)(r);o.addClass("input-filled-invalid"),o.removeClass("input-filled-valid")})))}))}function w(e,t){var n,o,l;switch(t){case"solves":n=(0,a.default)("input[data-submission-type=correct]:checked"),o="solve",l=v("Solves","正确提交");break;case"fails":n=(0,a.default)("input[data-submission-type=incorrect]:checked"),o="fail",l=v("Fails","错误提交")}var u=n.map((function(){return(0,a.default)(this).data("submission-id")})),c=1===u.length?o:o+"s";(0,i.ezQuery)({title:v("Delete ".concat(l),"删除".concat(l)),body:v("Are you sure you want to delete ".concat(u.length," ").concat(c,"?"),"你确定要删除".concat(u.length,"个").concat(l,"吗？")),success:function(){var e,t=[],n=p(u);try{for(n.s();!(e=n.n()).done;){var a=e.value;t.push(r.default.api.delete_submission({submissionId:a}))}}catch(e){n.e(e)}finally{n.f()}Promise.all(t).then((function(e){window.location.reload()}))}})}var S={team:[function(e){return r.default.api.get_team_solves({teamId:e})},function(e){return r.default.api.get_team_fails({teamId:e})},function(e){return r.default.api.get_team_awards({teamId:e})}],user:[function(e){return r.default.api.get_user_solves({userId:e})},function(e){return r.default.api.get_user_fails({userId:e})},function(e){return r.default.api.get_user_awards({userId:e})}]};(0,a.default)((function(){(0,a.default)("#team-captain-form").submit((function(e){e.preventDefault();var t=(0,a.default)("#team-captain-form").serializeJSON(!0);r.default.fetch("/api/v1/teams/"+window.TEAM_ID,{method:"PATCH",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){e.success?window.location.reload():((0,a.default)("#team-captain-form > #results").empty(),Object.keys(e.errors).forEach((function(t,n){(0,a.default)("#team-captain-form > #results").append((0,i.ezBadge)({type:"error",body:e.errors[t]}));var r=(0,a.default)("#team-captain-form").find("select[name={0}]".format(t)),o=(0,a.default)(r);o.addClass("input-filled-invalid"),o.removeClass("input-filled-valid")})))}))})),(0,a.default)(".edit-team").click((function(e){(0,a.default)("#team-info-edit-modal").modal("toggle")})),(0,a.default)(".invite-team").click((function(e){r.default.fetch("/api/v1/teams/".concat(window.TEAM_ID,"/members"),{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(e){if(e.success){var t=e.data.code,n="".concat(window.location.origin).concat(r.default.config.urlRoot,"/teams/invite?code=").concat(t);(0,a.default)("#team-invite-modal input[name=link]").val(n),(0,a.default)("#team-invite-modal").modal("toggle")}}))})),(0,a.default)("#team-invite-link-copy").click((function(e){(0,s.copyToClipboard)(e,"#team-invite-link")})),(0,a.default)(".members-team").click((function(e){(0,a.default)("#team-add-modal").modal("toggle")})),(0,a.default)(".edit-captain").click((function(e){(0,a.default)("#team-captain-modal").modal("toggle")})),(0,a.default)(".award-team").click((function(e){(0,a.default)("#team-award-modal").modal("toggle")})),(0,a.default)(".addresses-team").click((function(e){(0,a.default)("#team-addresses-modal").modal("toggle")})),(0,a.default)("#user-award-form").submit((function(e){e.preventDefault();var t=(0,a.default)("#user-award-form").serializeJSON(!0);t.user_id=(0,a.default)("#award-member-input").val(),t.team_id=window.TEAM_ID,(0,a.default)("#user-award-form > #results").empty(),t.user_id?(t.user_id=parseInt(t.user_id),r.default.fetch("/api/v1/awards",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(e){e.success?window.location.reload():((0,a.default)("#user-award-form > #results").empty(),Object.keys(e.errors).forEach((function(t,n){(0,a.default)("#user-award-form > #results").append((0,i.ezBadge)({type:"error",body:e.errors[t]}));var r=(0,a.default)("#user-award-form").find("input[name={0}]".format(t)),o=(0,a.default)(r);o.addClass("input-filled-invalid"),o.removeClass("input-filled-valid")})))}))):(0,a.default)("#user-award-form > #results").append((0,i.ezBadge)({type:"error",body:v("Please select a team member","请选择一名队员")}))})),(0,a.default)(".delete-member").click((function(e){e.preventDefault();var t=(0,a.default)(this).attr("member-id"),n=(0,a.default)(this).attr("member-name"),l={user_id:t},u=(0,a.default)(this).parent().parent();(0,i.ezQuery)({title:v("Remove Member","移除队员"),body:v("Are you sure you want to remove {0} from {1}? <br><br><strong>All of their challenge solves, attempts, awards, and unlocked hints will also be deleted!</strong>","您确定要从{1}中删除{0}吗？<br><br><strong>他们的所有解出的题目、尝试记录、奖励和解锁的提示也将被删除！</strong>").format("<strong>"+(0,o.htmlEntities)(n)+"</strong>","<strong>"+(0,o.htmlEntities)(window.TEAM_NAME)+"</strong>"),success:function(){r.default.fetch("/api/v1/teams/"+window.TEAM_ID+"/members",{method:"DELETE",body:JSON.stringify(l)}).then((function(e){return e.json()})).then((function(e){e.success&&u.remove()}))}})})),(0,a.default)(".delete-team").click((function(e){(0,i.ezQuery)({title:v("Delete Team","删除队伍"),body:v("Are you sure you want to delete {0}","你确定要删除{0}吗？").format("<strong>"+(0,o.htmlEntities)(window.TEAM_NAME)+"</strong>"),success:function(){r.default.fetch("/api/v1/teams/"+window.TEAM_ID,{method:"DELETE"}).then((function(e){return e.json()})).then((function(e){e.success&&(window.location=r.default.config.urlRoot+"/admin/teams")}))}})})),(0,a.default)("#solves-delete-button").click((function(e){w(0,"solves")})),(0,a.default)("#fails-delete-button").click((function(e){w(0,"fails")})),(0,a.default)("#awards-delete-button").click((function(e){var t,n;n=1===(t=(0,a.default)("input[data-award-id]:checked").map((function(){return(0,a.default)(this).data("award-id")}))).length?"award":"awards",(0,i.ezQuery)({title:v("Delete Awards","删除奖项"),body:v("Are you sure you want to delete ".concat(t.length," ").concat(n,"?"),"你确定要删除".concat(t.length,"个奖项吗？")),success:function(){var e,n=[],a=p(t);try{for(a.s();!(e=a.n()).done;){var o=e.value,i=r.default.fetch("/api/v1/awards/"+o,{method:"DELETE",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}});n.push(i)}}catch(e){a.e(e)}finally{a.f()}Promise.all(n).then((function(e){window.location.reload()}))}})})),(0,a.default)("#missing-solve-button").click((function(e){!function(e){e.preventDefault();var t=(0,a.default)("input[data-missing-challenge-id]:checked").map((function(){return(0,a.default)(this).data("missing-challenge-id")})),n=1===t.length?"challenge":"challenges";(0,i.ezQuery)({title:v("Mark Correct","标记为正确提交"),body:v("Are you sure you want to mark ".concat(t.length," ").concat(n," correct for ").concat((0,o.htmlEntities)(window.TEAM_NAME),"?"),"你确定要给".concat((0,o.htmlEntities)(window.TEAM_NAME),"将").concat(t.length,"个题目标记为正确提交吗？")),success:function(){(0,i.ezAlert)({title:v("User Attribution","选择认定为解出题目的队员"),body:v("\n        Which user on ".concat((0,o.htmlEntities)(window.TEAM_NAME),' solved these challenges?\n        <div class="pb-3" id="query-team-member-solve">\n        ').concat((0,a.default)("#team-member-select").html(),"\n        </div>\n        "),"\n        ".concat((0,o.htmlEntities)(window.TEAM_NAME),'的哪个队员解出了这个题目？\n        <div class="pb-3" id="query-team-member-solve">\n        ').concat((0,a.default)("#team-member-select").html(),"\n        </div>\n        ")),button:v("Mark Correct","标记为正确提交"),success:function(){var e,n=(0,a.default)("#query-team-member-solve > select").val(),o=[],i=p(t);try{for(i.s();!(e=i.n()).done;){var l=e.value,u={provided:"MARKED AS SOLVED BY ADMIN",user_id:n,team_id:window.TEAM_ID,challenge_id:l,type:"correct"},c=r.default.fetch("/api/v1/submissions",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(u)});o.push(c)}}catch(e){i.e(e)}finally{i.f()}Promise.all(o).then((function(e){window.location.reload()}))}})}})}(e)})),(0,a.default)("#team-info-create-form").submit(g),(0,a.default)("#team-info-edit-form").submit(b);var e=u.default.extend(c.default),t=document.createElement("div");document.querySelector("#comment-box").appendChild(t),new e({propsData:{type:"team",id:window.TEAM_ID}}).$mount(t);var n,f,h,y,A=u.default.extend(d.default),_=document.createElement("div");document.querySelector("#team-add-modal .modal-body").appendChild(_),new A({propsData:{team_id:window.TEAM_ID}}).$mount(_);var j,O=window.stats_data;n=O.type,f=O.id,h=O.name,y=O.account_id,(0,a.default)("#team-statistics-modal").on("shown.bs.modal",(function(e){!function(e,t,n,a){var r=m(S[e],3),o=r[0],i=r[1],u=r[2];Promise.all([o(a),i(a),u(a)]).then((function(r){(0,l.createGraph)("score_graph","#score-graph",r,e,t,n,a),(0,l.createGraph)("category_breakdown","#categories-pie-graph",r,e,t,n,a),(0,l.createGraph)("solve_percentages","#keys-pie-graph",r,e,t,n,a)}))}(n,f,h,y),j=setInterval((function(){!function(e,t,n,a){var r=m(S[e],3),o=r[0],i=r[1],u=r[2];Promise.all([o(a),i(a),u(a)]).then((function(r){(0,l.updateGraph)("score_graph","#score-graph",r,e,t,n,a),(0,l.updateGraph)("category_breakdown","#categories-pie-graph",r,e,t,n,a),(0,l.updateGraph)("solve_percentages","#keys-pie-graph",r,e,t,n,a)}))}(n,f,h,y)}),3e5)})),(0,a.default)("#team-statistics-modal").on("hidden.bs.modal",(function(e){clearInterval(j)})),(0,a.default)(".statistics-team").click((function(e){(0,a.default)("#team-statistics-modal").modal("toggle")}))}))},87745:(e,t,n)=>{function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createGraph=function(e,t,n,a,i,l,u){var c=m[e],d=o.init(document.querySelector(t),null,{locale:f("Scr1wCTFdLanguage")});d.setOption(c.format(a,i,l,u,n)),(0,r.default)(window).on("resize",(function(){null!=d&&null!=d&&d.resize()}))},t.disposeGraph=function(e){o.dispose(document.querySelector(e))},t.updateGraph=function(e,t,n,a,r,i,l){var u=m[e];o.init(document.querySelector(t),null,{locale:f("Scr1wCTFdLanguage")}).setOption(u.format(a,r,i,l,n))};var r=c(n(79674)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(85629)),i=c(n(71350));n(76528),n(47585);var l=n(56930);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function f(e){var t,n,a,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}(document.cookie.split("; "));try{for(r.s();!(t=r.n()).done;){var o=(n=t.value.split("="),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(n,a)||d(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1];if(i===e)return decodeURIComponent(l)}}catch(e){r.e(e)}finally{r.f()}return"zh"}var m={score_graph:{format:function(e,t,n,a,r){var o={title:{left:"center",text:"en"===f("Scr1wCTFdLanguage")?"Score over Time":"得分曲线"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:{type:"scroll",orient:"horizontal",align:"left",bottom:0,data:[n]},toolbox:{feature:{saveAsImage:{}}},grid:{containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:[]}],yAxis:[{type:"value"}],dataZoom:[{id:"dataZoomX",type:"slider",xAxisIndex:[0],filterMode:"filter",height:20,top:35,fillerColor:"rgba(233, 236, 241, 0.4)"}],series:[]},u=[],c=[],d=r[0].data,s=r[2].data,m=d.concat(s);m.sort((function(e,t){return new Date(e.date)-new Date(t.date)}));for(var p=0;p<m.length;p++){var h=(0,i.default)(m[p].date);u.push(h.toDate());try{c.push(m[p].challenge.value)}catch(e){c.push(m[p].value)}}return u.forEach((function(e){o.xAxis[0].data.push(e)})),o.series.push({name:window.stats_data.name,type:"line",label:{normal:{show:!0,position:"top"}},areaStyle:{normal:{color:(0,l.colorHash)(n+t)}},itemStyle:{normal:{color:(0,l.colorHash)(n+t)}},data:(0,l.cumulativeSum)(c)}),o}},category_breakdown:{format:function(e,t,n,a,r){for(var o={title:{left:"center",text:"en"===f("Scr1wCTFdLanguage")?"Category Breakdown":"类别细分"},tooltip:{trigger:"item"},toolbox:{show:!0,feature:{saveAsImage:{}}},legend:{type:"scroll",orient:"vertical",top:"middle",right:0,data:[]},series:[{name:"en"===f("Scr1wCTFdLanguage")?"Category Breakdown":"类别细分",type:"pie",radius:["30%","50%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},itemStyle:{normal:{label:{show:!0,formatter:function(e){return"".concat(e.percent,"% (").concat(e.value,")")}},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},emphasis:{label:{show:!0,fontSize:"30",fontWeight:"bold"}},labelLine:{show:!1},data:[]}]},i=r[0].data,u=[],c=0;c<i.length;c++)u.push(i[c].challenge.category);for(var d=u.filter((function(e,t){return u.indexOf(e)==t})),s=[],m=0;m<d.length;m++){for(var p=0,h=0;h<u.length;h++)u[h]==d[m]&&p++;s.push(p)}return d.forEach((function(e,t){o.legend.data.push(e),o.series[0].data.push({value:s[t],name:e,itemStyle:{color:(0,l.colorHash)(e)}})})),o}},solve_percentages:{format:function(e,t,n,a,r){var o=r[0].data.length,i=r[1].meta.count;return{title:{left:"center",text:"en"===f("Scr1wCTFdLanguage")?"Solve Percentages":"解出比例"},tooltip:{trigger:"item"},toolbox:{show:!0,feature:{saveAsImage:{}}},legend:{orient:"vertical",top:"middle",right:0,data:["Fails","Solves"]},series:[{name:"en"===f("Scr1wCTFdLanguage")?"Solve Percentages":"提交比例",type:"pie",radius:["30%","50%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},itemStyle:{normal:{label:{show:!0,formatter:function(e){return"".concat(e.name," - ").concat(e.value," (").concat(e.percent,"%)")}},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},emphasis:{label:{show:!0,fontSize:"30",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:i,name:"en"===f("Scr1wCTFdLanguage")?"Fails":"错误提交",itemStyle:{color:"rgb(207, 38, 0)"}},{value:o,name:"en"===f("Scr1wCTFdLanguage")?"Solves":"正确提交",itemStyle:{color:"rgb(0, 209, 64)"}}]}]}}}}}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e](o,o.exports,a),o.loaded=!0,o.exports}a.m=t,e=[],a.O=(t,n,r,o)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,r,o]=e[d],l=!0,u=0;u<n.length;u++)(!1&o||i>=o)&&Object.keys(a.O).every((e=>a.O[e](n[u])))?n.splice(u--,1):(l=!1,o<i&&(i=o));if(l){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,r,o]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=38,(()=>{var e={38:0,671:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,l,u]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(u)var d=u(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(d)},n=self.webpackChunkctfd=self.webpackChunkctfd||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=a.O(void 0,[160,759,736,694],(()=>a(55777)));r=a.O(r)})();